package com.example.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.pojo.Aircraft;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AircraftService extends IService<Aircraft> {

    List<Aircraft> selectAllAircraft(String originName,String destinationName,Integer start,Integer pageSize);//条件+分页查询飞机票信息

    int count(String originName,String destinationName);//条件查询飞机票信息数量

    int addAircraft(Aircraft aircraft);//添加飞机票信息

    int deleteAircraft(Integer id);//删除飞机票信息

    Aircraft selectById(Integer id);//根据id查询飞机票信息

    int updateAircraft(Aircraft aircraft);//修改飞机票信息

    void addAircraft(List<Aircraft> aircrafts);//批量添加


}
